﻿using System;
using System.Collections.Generic;

namespace TBM.Models
{
    /// <summary>
    /// 模块模型
    /// </summary>
    public class Module
    {
        public int ID { get; set; }
        public int PID { get; set; }
        /// <summary>
        /// 控制器名
        /// </summary>
        public string ControllerName { get; set; }
        /// <summary>
        /// 控制器描述
        /// </summary>
        public string ControllerDescr { get; set; }
        /// <summary>
        /// 功能名
        /// </summary>
        public string ActionName { get; set; }
        /// <summary>
        /// 功能描述
        /// </summary>
        public string ActionDescr { get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsActived { get; set; }
        /// <summary>
        /// 是否选中
        /// </summary>
        public bool IsChecked { get; set; }
    }


    public class ModuleItem : Module
    {
        /// <summary>
        /// 子模块
        /// </summary>
        public List<ModuleItem> SubModule { get; set; }
    }


    public class ModuleController
    {
        /// <summary>
        /// 控制器名
        /// </summary>
        public string ControllerName { get; set; }
        /// <summary>
        /// 控制器描述
        /// </summary>
        public string ControllerDescr { get; set; }
        /// <summary>
        /// 子模块
        /// </summary>
        public List<ModuleItem> SubModule { get; set; }
    }
}